﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeviceSDK.LED
{
    public class LEDSendResult
    {

        public int RetCode=-1;
        public string SendContent="";
        public string ReplayContent="";
        public string Remark="";

        public bool IsSupportCheck
        {
            get;set;
        }

        public bool IsSuccess
        {
            get { return RetCode == 0; }
        }

        public bool CheckContent
        {
            get {
                return SendContent.Equals(ReplayContent) || SendContent.Contains(ReplayContent) || ReplayContent.Contains(SendContent);
            }
        }

        public LEDSendResult(bool isCheckResult)
        {
            this.IsSupportCheck = isCheckResult;
        }
    }
}
